package com.software.sqlite.mapper;

import com.software.sqlite.common.BaseMapper;
import com.software.sqlite.entity.AutoRecharge;
import com.software.sqlite.entity.TbMovieUserBill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbMovieUserBillMapper extends BaseMapper<TbMovieUserBill> {

    List<AutoRecharge> selectRechargeList();
    /**
     * 根据用户&影片id获取账单
     * @param userToken
     * @param movieId
     * @return
     */
    List<TbMovieUserBill> selectByUserIdAndMovieId(@Param("userToken")String userToken, @Param("movieId")String movieId);

    /**
     * 我的账单
     * @param userToken
     * @return
     */
    List<TbMovieUserBill> myBill(@Param("userToken")String userToken);

    void updateOrderByAuto(@Param("billId")Long billId,
                           @Param("handleUserName")String handleUserName,
                           @Param("handleMessage")String handleMessage,
                           @Param("handleFlag")String handleFlag,
                           @Param("errorCount")Integer errorCount,
                           @Param("errorResult")String errorResult);



}
